From 73841cd1114e0d742562bcdf0b0066899e551fa2 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Fri, 20 Sep 2013 20:22:32 +0000 Subject: [PATCH] Bring forward uncontested change from NEW_STRINGS work to fix non-NEW_STRINGS build break. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4623 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/waypt.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/waypt.cc b/gpsbabel/waypt.cc index 266378346..027d3f4a6 100644 --- a/gpsbabel/waypt.cc +++ b/gpsbabel/waypt.cc @@ -384,7 +384,7 @@ waypt_compute_bounds(bounds* bounds) } waypoint* -find_waypt_by_name(const char* name) +find_waypt_by_name(const QString& name) { #if NEWQ foreach(waypoint* waypointp, waypt_list) { @@ -395,7 +395,7 @@ find_waypt_by_name(const char* name) QUEUE_FOR_EACH(&waypt_head, elem, tmp) { waypointp = (waypoint*) elem; #endif - if (0 == strcmp(waypointp->shortname, name)) { + if (waypointp->shortname == name) { return waypointp; } } -- 2.30.2